//
//  MHComicCollectionViewCell.m
//  ManHua
//
//  Created by 江子安 on 15/10/26.
//  Copyright © 2015年 蓝欧科技. All rights reserved.
//

#import "MHComicCollectionViewCell.h"

@implementation MHComicCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        float width = self.bounds.size.width;
        float height = self.bounds.size.height;
        
        _imgView = [[UIImageView alloc]initWithFrame:CGRectMake(5, 5, width - 10, height - 30 - 5)];
        _imgView.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_imgView];
        
        _sectionLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, height - 5 - 30 - 20, width - 10, 20)];
        _sectionLabel.backgroundColor = [UIColor colorWithRed:0.9 green:0.94 blue:0.95 alpha:0.5];
        _sectionLabel.font = [UIFont systemFontOfSize:14];
        [_imgView addSubview:_sectionLabel];
        
        
        _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, height - 30, width, 30)];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_titleLabel];
        
        
    }
    return self;
}




@end
